//
//  AudioImageSlideAndButtonsViewController.h
//  ubixar-framework
//
//  Created by Demis Bellot on 24/04/2009.
//  Copyright 2009 Ubixar. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "UXSystem.h"
#import "ImageSlideAndButtonsViewController.h"

/*
  same as ImageSlideAndButtonsViewController except has support for audio 
*/
@interface AudioImageSlideAndButtonsViewController 
	: ImageSlideAndButtonsViewController<AVAudioPlayerDelegate> 
{

	NSMutableArray* audioFileNames;
	AVAudioPlayer* audioPlayer;
}

- (void)setImageNames:(NSArray*)imageNames
		   audioNames:(NSArray*)theAudioNames
		  buttonNames:(NSArray*)buttonNames
	 firstButtonFrame:(CGRect)firstButtonFrame
		buttonPadding:(CGPoint)buttonPadding;

- (void) playAudio;
- (void) pauseAudio;
- (NSString*) currentAudioFileName;
- (void) disposeAudioPlayer;

@end
